package com.wms.mapper;

import com.wms.dto.TaskDetailDTO;
import com.wms.entity.StockTakingTaskDetailList;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ReviewAdjustmentsDetailListMapper {
    /**
     * 查询审核调整单详情(列表)
     * @param code
     * @return
     */
    StockTakingTaskDetailList queryReviewAdjustmentsDetailList(@Param("code") String code);
    /**
     * 查询该任务下的所有商品明细
     * @param taskId
     * @return
     */
    List<TaskDetailDTO> queryTaskDetailByListDTO(@Param("taskId") Integer taskId);

    /**
     * 更新审核状态为完成调整(对应的status改为已完成盘点)
     * @param code
     * @param auditOpinion
     * @param auditUserId
     * @return
     */
    int updateTaskAuditStatusByFinishReview(@Param("code")String code,@Param("auditOpinion") String auditOpinion,@Param("auditUserId")Integer auditUserId);
}
